# while True:
#     try:
#         n=int(input())
#         list1=[]
#         for i in range(0,n):
#             list1.append(int(input()))
#         list2=sorted(list1)
#         print(list2)
#         a=len(list2)
#         for i in range(-a,0):
#             if list2[i]==list2[i+1]:
#                 list2.remove(list2[i+1])
#                 print(list2)
#         for i in range(0,len(list2)):
#             print(list2[i])
#     except:
#         break
# while True:
#     try:
#         n = int(input())
#         list1=[]
#         for i in range(n):
#             list1.append(int(input()))
#         lsit2=sorted(list1)
#         list2=list(set(list2))
#         for i in range(len(list2)):
#             print(list2[i])
#
#     except:
#         break
N = int(input())
lis = []
for _ in range(N):
    lis.append(int(input()))
ans = sorted(set(lis))  # 集合set去重，使用内置方法排序
for x in ans:
    print(x)